package cn.com.cifi.mars.mapper.mars;

import cn.com.cifi.mars.bean.dto.ProjectOrgDto;
import cn.com.cifi.mars.entity.MdmProject;

import cn.com.cifi.mars.entity.common.ProjectByStages;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 * 项目表 Mapper 接口
 * </p>
 *
 * @author yyd
 * @since 2019-09-24
 */
public interface ProjectMapper extends BaseMapper<MdmProject> {
	
	MdmProject selectByProjectId(@Param("projectId")String projectId, @Param("isDel")int isDel);

	void updateByProjectId(@Param("project") MdmProject project);

	void insertBatch(@Param("list")List<MdmProject> insertList);

	List<ProjectByStages> selectParentData(@Param("projectId")String projectId);

	ProjectOrgDto selectProjectParentData(@Param("projectId")String projectId);
}
